
import {
    toast
} from 'nc-lightapp-front';

import deepCopy from '../../../../public/functions/deep-copy';

import language from '../../language';

export default function(tableId, data) {
    this.setState({
        copyData: {
            ...this.state.copyData,
            [tableId]: deepCopy(data)
        }
    }, () => {
        toast({
            color: 'success',
            content: language['hi6007-000173']/* 国际化处理： 复制成功*/
        });
    });
}